import urllib2
	
proxy_setted = False

def setup_proxy():
	global proxy_setted
	if proxy_setted:
		return 
	proxy_setted = True
	print 'Setting proxy...'
	proxy_handler = urllib2.ProxyHandler({'http': 'http://127.0.0.1:8007'})
	opener = urllib2.build_opener(proxy_handler)
	urllib2.install_opener(opener)
